package com.jf.cloud.user.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.jf.cloud.common.model.ExcelModel;

/**
 * 客户导入信息
 * @author: zsm
 * @date: 2023/1/16 10:31
 */
public class ShopCustomerExcelDTO extends ExcelModel {
    /**
     * excel 信息
     */
    public static final String EXCEL_NAME = "导入客户信息模板";
    public static final String SHEET_NAME = "sheet";
    /**
     * 哪一行开始导出
     */
    public static final int MERGE_ROW_INDEX = 1;
    /**
     * 需要合并的列数组
     */
    public static final int[] MERGE_COLUMN_INDEX = {};

    @ExcelProperty(value = {"序号"}, index = 0)
    private String seq;

    @ExcelProperty(value = {"手机号(必填)"}, index = 1)
    @ColumnWidth(20)
    private String phone;

    @ExcelIgnore
    private Long shopId;

    @ExcelIgnore
    private Long userId;

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getSeq() {
        return seq;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "ShopCustomerExcelDTO{" +
                "seq='" + seq + '\'' +
                ", phone='" + phone + '\'' +
                ", shopId=" + shopId +
                ", userId=" + userId +
                '}';
    }
}
